<h1 class="<?php echo $this->cssstyle; ?>">An error occurred → <?php echo $this->message; ?></h1>

<?php
if ('development' == APPLICATION_ENV) :
	?>

<?php if($this->exception || $this->request) : ?>
<h2>Exception information:</h2>
<ul>
	<?php if($this->exception) : ?>
	<li>
		<h3>Message:</h3>
		<pre><?php echo $this->exception->getMessage();?></pre>
	</li>
	<li>
		<h3>Stack trace:</h3>
		<pre><?php echo $this->exception->getTraceAsString();?></pre>
	</li>
	<?php endif ?>
	
	<?php if($this->request) : ?>
	<li>
		<h3>Request Parameters:</h3>
		<pre><?php echo var_export ( $this->request->getParams(), true );?></pre>
	</li>
	<?php endif ?>
</ul>
<?php endif ?>

<?php endif ?>